package com.mgface.framework;

import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project ms-mgface-framework-springcloud
 * @create 2017-04-14 18:38
 **/
@Configuration
public class Configuration1 {
    //自定义契约，默认契约为SpringMvcContract,改成feign自己的契约
    @Bean
    public Contract feignContract() {
        return new feign.Contract.Default();
    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
